﻿using System;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            Computes cp = new Computes();
            cp.Add(2.0, 3.8);
            cp.Minus(9.8, 10);

            Randoms r = new Randoms();
            Console.WriteLine("乘为："+r.GetRandomNumber(5.6, 6.9,7)); //生成随机小数，结果保留7位小数


            string teacher = "我的专业老师:";
            double f;
            Teacher tea = new Teacher();          
            tea.teachername(ref teacher,out f);

            Console.WriteLine(teacher);
            Console.WriteLine("除为：" + f.ToString("f2"));
        }
    }
}
